<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 //EN">
<!-- saved from url=(0068)http://huongdemon.webmienphi.in/modules/upload/them_moi.php?sid=8067 -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<script language="javascript">
var anhhientai
function doi_chon_anh(ele,stt)
{
	anhhientai=stt;
	document.getElementById('anhhientai').value=anhhientai;
	className='anh_sanpham_upload_chon';
	var arr = new Array(); 
	var elems = document.getElementsByTagName("*");
	for(var i = 0; i < elems.length; i++)
	{
	  var elem = elems[i];
	  var id = elem.getAttribute("id");
	  if (navigator.userAgent.indexOf("MSIE")>=0)
		{ var cls = elem.getAttribute("className");}
		else
		{ var cls = elem.getAttribute("class");	}
	  if(cls == className)
	  {
		arr[arr.length] = id;
		 elem.className="anh_sanpham_upload";
	  }
	}
	
	ele.className='anh_sanpham_upload_chon';
}

function dele()
{	

	

	window.location="/modules/upload/them_moi.php?id=0&sid=8067&del_id="+anhhientai+'&random=1461396302';
}
function dele_all()
{
	window.location="/modules/upload/them_moi.php?id=0&sid=8067&dele_all=1"+'&random=494089481';
}

function left()
{
	window.location="/modules/upload/them_moi.php?id=0&sid=8067&move_left="+anhhientai+'&random=1719188643';
}

function right()
{
	window.location="/modules/upload/them_moi.php?id=0&sid=8067&move_right="+anhhientai+'&random=922186327';
}

</script>
	<title>UPLOAD FILE</title>
	<meta http-equiv="Pragma" content="no-cache">
<style>
body{margin:0px; background:#ededed; padding:10px; font-family:tahoma; font-size:12px;}
a{color:#333333; text-decoration:none}
a:hover{color:#333333; text-decoration: underline}
.anh_sanpham_upload{ border:1px solid #CCCCCC; padding:1px; height:40px; cursor:pointer; margin-left:3px;}
.anh_sanpham_upload_chon{ border:2px solid #FF0000; padding:1px; height:40px; cursor:pointer; margin-left:3px;}

.div_container{overflow: auto; height:70px;}
.left{background:url(../../templates/images/arrow-back_16.png) no-repeat;}
.right{background:url(../../templates/images/arrow-forward_16.png) no-repeat;}
.dele{background:url(../../templates/images/pic_trash.gif)  no-repeat;}
.dele_all{background:url(../../templates/images/pic_empty.gif)  no-repeat;}
.nut_cong_cu { font-size:11px; padding:3px 0px 3px 17px; background-position:0px 2px}
</style>
</head>
<body style="margin:0px; font-size:11px; background:#ededed">
<form name="form1" id="form1" enctype="multipart/form-data" method="post">
<input name="dachon" id="dachon" type="hidden" value="">
    <input style="height:23px; margin-bottom:5px; font-size:11px; background:#fff" type="file" name="upload1">
  <input type="hidden" name="anhhientai" id="anhhientai">
	<input type="submit" name="send" value="Upload" class="bottone" style="font-size:11px; height:23px">
    <br>
    <div style="padding-bottom:5px; color:#333333">Ảnh upload đầu tiên sẽ là ảnh đại diện của SP </div>
  <div id="thongbaodangupload" style="display:none">Đang upload ảnh</div>
<div><img onclick="doi_chon_anh(this,0)" class="anh_sanpham_upload_chon" src="chen_moi.gif"></div>  <div class="pic_tool" style="padding:10px 0px 0px 0px">
 <input name="" type="button" class="nut_cong_cu left" onclick="left()" value="Trái">
  <input name="" type="button" class="nut_cong_cu right" onclick="right()" value="Phải">
  
  <input name="" type="button" class="nut_cong_cu dele" onclick="dele()" value="Xóa">
  <input name="" type="button" class="nut_cong_cu dele_all" onclick="dele_all()" value="Xóa toàn bộ">
  </div>
</form>

</body></html>